import request from '@/utils/request'

export const login = data => {
  // return 后面的就是promise对象
  return request({
    url: 'user/login',
    method: 'POST',
    data
  })
}

// 获取用户信息
export const getUserInfo = () => {
  return request({
    url: 'user/info'
  })
}
